#ifndef __IIC_LED_H__
#define __IIC_LED_H__

#include "light.h"

#define IIC_LED_CTRL_REG  0x11

typedef int (*i2c_led_read_byte_fn_t)(void* self, char offset, int* data);
typedef int (*i2c_led_write_byte_fn_t)(void* self, char offset, int data);

typedef struct IicLed_i {
    i2c_led_read_byte_fn_t read_byte;
    i2c_led_write_byte_fn_t write_byte;
}IicLed_i;

typedef struct IicLed {
    Light_i * interface;
    IicLed_i **iic_dev;
    char reg_address;
} IicLed;

int iic_led_init(IicLed *self, IicLed_i** iic_dev);


#endif
